
cmake_minimum_required(VERSION 3.15.0)

project(imgui_project)

set(CMAKE_CXX_STANDARD 17)

if(IMGUI_BUILD_GLFW_OPENGL3)

message("Build glfw opengl3")

set(
    implention_src 
    backends/imgui_impl_glfw.cpp
    backends/imgui_impl_opengl3.cpp
)

endif()
if(IMGUI_BUILD_ANDROID_GLFW3)
  set(
    implention_src 
    backends/imgui_impl_android.cpp
    backends/imgui_impl_opengl3.cpp
)
endif()

file(GLOB imgui_src *.cpp)

add_subdirectory(custom)

add_library(imgui ${imgui_src} ${implention_src} )
target_include_directories(imgui PUBLIC ./)
target_include_directories(imgui PUBLIC ./imgui)
target_link_libraries(imgui PUBLIC imgui-custom imgui-node imgui-zmo)

add_subdirectory(zmo)
add_subdirectory(node)

add_subdirectory(gut)
add_subdirectory(math)